<!--
 * @Description:
 * @Autor: scy😊
 * @Date: 2021-01-20 10:13:52
 * @LastEditors: scy😊
 * @LastEditTime: 2021-01-20 11:52:22
-->
<template>
  <ArticleDetail :isEdit="true" />
</template>

<script lang="ts">

import { defineComponent,onMounted, reactive, toRefs } from 'vue'
import { useRoute, useRouter } from 'vue-router';
import ArticleDetail from './components/ArticleDetail.vue'

export default defineComponent({
  components: {
    ArticleDetail
  },
  setup(){
     const dataMap = reactive({isEdit:false})
    const router = useRouter();
     onMounted(async () => {
          
         let id = useRoute().query?.id;
         if(id){
           dataMap.isEdit = true;
         }
         else
         dataMap.isEdit = false;
    })
    return {...toRefs(dataMap)};
  }
})
</script>
